package com.cjkj.equipment.service;

import com.cjkj.equipment.domain.TWarnRecords;
import com.cjkj.system.api.domain.APIWarnHandle;
import com.cjkj.system.api.domain.request.WarnRecordReq;

import java.util.Date;
import java.util.List;

/**
 * 预警记录Service接口
 * 
 * @author cjkj
 * @date 2024-08-30
 */
public interface ITWarnRecordsService 
{

    /**
     * 保存预警记录
     * @param recordsList
     * @return
     */
    boolean saveOrUpdateRecord(List<TWarnRecords> recordsList);

    /**
     * 查询预警记录
     **/
    List<TWarnRecords> listRecords(String hospitalId, String deptId, String hasHandle, String dataType);

    /**
     * 处理预警提示
     **/
    Boolean handleWarn(List<APIWarnHandle> warnHandleList);

    /**
     * 根据就诊号处理预警
     **/
    Boolean handleWarn(WarnRecordReq req);

    /**
     * 根据就诊号查询未处理预警
     **/
    List<TWarnRecords> list(Long visitNo, Date expectOutTime);
}
